package com.freejy.ecommunity.web.dto.request;

import javax.validation.constraints.*;

/**
 * @author Jerry
 */
public class TopicReqDto
{

    private String title;

    private String userAgent;

    private String showUrls;

    @NotNull
    @Min(0)
    @Max(4)
    private Integer type;       //内容类型

    @NotNull
    @Min(0)
    @Max(1)
    private Integer reposted;   //帖子类型：0.原创；1.转载

    private String tags;    //标签

    @Size(max = 200)
    private String location;    //位置信息

    @NotNull
    @DecimalMin("-180")
    @DecimalMax("180")
    private Double longitude;   //经度

    @NotNull
    @DecimalMin("-90")
    @DecimalMax("90")
    private Double latitude;    //纬度

    @Min(0)
    private Long parentId;

    @Size(max = 500)
    private String content;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getShowUrls() {
        return showUrls;
    }

    public void setShowUrls(String showUrls) {
        this.showUrls = showUrls;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getReposted() {
        return reposted;
    }

    public void setReposted(Integer reposted) {
        this.reposted = reposted;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
